//network/baseUrl.js
 
// ================================================================设置网络请求根路径
let baseUrl = (function() {
  // 请求根路径
  // let urlStr = 'http://10.169.38.93:4410/orgPc';//测试地址
   let urlStr = 'https://lhqf.szlh.org.cn/orgPc';//正式地址
  if (process.env.NODE_ENV === 'development') {
    console.log('开发环境');
    // #ifdef H5
    // urlStr = 'http://192.168.31/collect/';
 
    // #endif
    // #ifndef H5
    // urlStr = 'http://192.168.31/collect/';
 
    // #endif
  } else {
    console.log('生产环境');
    // #ifdef H5
     // urlStr = 'http://192.168.31/collect/';
 
    // #endif
    // #ifndef H5
     // urlStr = 'http://192.168.31/collect/';
 
    // #endif
  }
  return urlStr
})();
// ==================== 图片上传url==========
let uploadImgUrl = (function() {
  let urlStr = '';
  if (process.env.NODE_ENV === 'development') {
    // urlStr = 'http://192.168.31/collect/';
 
  } else {
    // urlStr = 'http://192.168.31/collect/';
 
  }
  return urlStr
})();
 
// ==================== 地图接口url==========
const mapUrl = (function() { 
  // let mapUrl = 'http://8.138.88.230:18083'
  let mapUrl = 'https://lhqf.szlh.org.cn/inSpace'
  if (process.env.NODE_ENV === 'development') {
  } else {
    console.log('生产环境');
  }
  return mapUrl
})();
export default {
  baseUrl,
  uploadImgUrl,
  mapUrl
}